window.__require = function e(t, n, r) {
  function s(o, u) {
    if (!n[o]) {
      if (!t[o]) {
        var b = o.split("/");
        b = b[b.length - 1];
        if (!t[b]) {
          var a = "function" == typeof __require && __require;
          if (!u && a) return a(b, !0);
          if (i) return i(b, !0);
          throw new Error("Cannot find module '" + o + "'");
        }
        o = b;
      }
      var f = n[o] = {
        exports: {}
      };
      t[o][0].call(f.exports, function(e) {
        var n = t[o][1][e];
        return s(n || e);
      }, f, f.exports, e, t, n, r);
    }
    return n[o].exports;
  }
  var i = "function" == typeof __require && __require;
  for (var o = 0; o < r.length; o++) s(r[o]);
  return s;
}({
  DialogLayer: [ function(require, module, exports) {
    "use strict";
    cc._RF.push(module, "8b1b4Xrxh9G6KgL3qqWeYpU", "DialogLayer");
    "use strict";
    cc.Class({
      extends: cc.Component,
      properties: {
        okBtn: {
          displayName: "\u786e\u5b9a\u6309\u94ae",
          default: null,
          type: cc.Node
        },
        cancelBtn: {
          displayName: "\u53d6\u6d88\u6309\u94ae",
          default: null,
          type: cc.Node
        },
        closeBtn: {
          displayName: "\u5173\u95ed\u6309\u94ae",
          default: null,
          type: cc.Node
        },
        tipsLabel: {
          displayName: "\u63d0\u793a\u8bed",
          default: null,
          type: cc.Label
        },
        _okCb: null,
        _cancelCb: null,
        _closeCb: null
      },
      onLoad: function onLoad() {},
      showTipsWithOkBtn: function showTipsWithOkBtn(word, okCb, cancelCb, closeCb) {
        this.okBtn.active = true;
        this.cancelBtn.active = false;
        this.tipsLabel.string = word;
        this._okCb = okCb;
        this._cancelCb = cancelCb;
        this._closeCb = closeCb;
      },
      showTipsWithOkCancelBtn: function showTipsWithOkCancelBtn(word, okCb, cancelCb, closeCb) {
        this.okBtn.active = true;
        this.cancelBtn.active = true;
        this.tipsLabel.string = word;
        this._okCb = okCb;
        this._cancelCb = cancelCb;
        this._closeCb = closeCb;
      },
      setCloseBtnVisible: function setCloseBtnVisible(b) {
        this.closeBtn.active = b;
      },
      onClickBtnOk: function onClickBtnOk() {
        this._okCb && this._okCb();
        this.node && this.node.destroy();
      },
      onClickBtnCancel: function onClickBtnCancel() {
        this._cancelCb && this._cancelCb();
        this.node && this.node.destroy();
      },
      onClickBtnClose: function onClickBtnClose() {
        this._closeCb && this._closeCb();
        this.node.destroy();
      }
    });
    cc._RF.pop();
  }, {} ]
}, {}, [ "DialogLayer" ]);